<!--main-container-part-->
<div id="content">
<!--breadcrumbs-->
  <div id="content-header">
    <div id="breadcrumb"> <a href="/backend/index.html" title="返回后台首页" class="tip-bottom"><i class="icon-home"></i> 后台首页</a>
    <a href="/backend/news.html" class="current">新闻管理</a>
    <a href="#" class="current">新闻修改</a></div>
    <h1>新闻修改</h1>
  </div>
<!--End-breadcrumbs-->

<!--Action boxes-->
  <div class="container-fluid">
<hr>
<div class="row-fluid">
    <div >
      <div class="widget-box">
        <div class="widget-title"> <span class="icon"> <i class="icon-align-justify"></i> </span>
          <h5>新闻信息</h5>
        </div>
        <div class="widget-content nopadding">
          <form method="post" action='__SELF__' class="form-horizontal" enctype="multipart/form-data">
            <div class="control-group">
              <label class="control-label">选择分类 :</label>
              <div class="controls">
                <select name="cateid">
                  <volist name="cate" id="vo">
                    <option value="{$vo.cid}" 
                    <if condition="$vo['cid'] eq $news['cateid']">selected="selected"</if>
                    >{$vo.html}{$vo.name}</option>
                  </volist>
                </select>
              </div>
            </div>
            <div class="control-group">
              <label class="control-label">新闻标题 :</label>
              <div class="controls">
                <input type="text" name="title" class="span6" value="{$news.title}">
                <input type="checkbox" name="islink" value="1" class="islink" >&nbsp;是否外链
                <input type="hidden" name="aid" value="{$news.aid}" />
              </div>
            </div>
            <div class="control-group onlink">
              <label class="control-label">缩略图 :</label>
              <div class="controls">
                <input type="text"  class="span6" value="{$news.thumbnail}" id="img">
                <input type="file" style="width:75px;height: 30px;" name="thumbnail" id="file" value=""/>
                <!-- <button type="button" id="uploadImg">上传</button> -->
              </div>
            </div>
            <div class="control-group islinkV" style="display:none">
              <label class="control-label">外链地址 :</label>
              <div class="controls">
                <input type="text" name="link" class="span6" value="">
              </div>
            </div>
            <div class="control-group onlink">
              <label class="control-label">内容摘要</label>
              <div class="controls">
                 <textarea class="span11" name="summary">{$news.summary}</textarea>
              </div>
            </div>
            <div class="control-group onlink">
              <label class="control-label">内容</label>
              <div class="controls">
                <!-- content begin -->
                <div class="span11">
                  <script id="container" name="content" type="text/plain">{$news.content}
                  </script>
                </div>
                <!-- content end -->
              </div>
            </div>
            <div class="control-group onlink">
              <label class="control-label">作者</label>
              <div class="controls">
              <input type="text" name="author" class="span2" value="{$news.author}"> 
              </div>
            </div>
            <div class="control-group onlink">
              <label class="control-label">来源 :</label>
              <div class="controls">
                <input type="text" name="source" class="span6" value="{$news.source}">
              </div>
            </div>
            <div class="control-group onlink">
              <label class="control-label">SEO关键字 :</label>
              <div class="controls">
                <input type="text" name="keywords" class="span11" value="{$news.keywords}">
              </div>
            </div>
            <div class="control-group onlink">
              <label class="control-label">SEO描述 :</label>
              <div class="controls">
                <textarea class="span11" name="description">{$news.description}</textarea>
              </div>
            </div>
            <div class="control-group onlink">
              <label class="control-label">发布时间</label>
              <div class="controls">
              <input type="text" name="time" class="span3" value="{$news.time|date='Y-m-d H:i:s',###}"> 
              </div>
            </div>

            <div class="control-group onlink">
              <label class="control-label">点击次数</label>
              <div class="controls">
              <input type="text" name="click" class="span3" value="{$news.click}"> 
              </div>
            </div>
            <div class="control-group">
              <label class="control-label">排序权重 :</label>
              <div class="controls">
                <input type="text" name="sort" class="span1" value="{$news.weight}">&nbsp;&nbsp;值越大越靠前
              </div>
            </div>
            <div class="control-group onlink">
              <label class="control-label">阅读权限</label>
              <div class="controls">
              <select name="status">
                <option value="1" selected>所有人</option><option value="0" >内部员工</option>    </select>
              </div>
            </div>
            <div class="control-group onlink">
              <label class="control-label">文章状态</label>
              <div class="controls">
              <input type="radio" name="status" checked="checked" value="1" >&nbsp;发布&nbsp;&nbsp;
              <input type="radio" name="status" value="0" >&nbsp;草稿&nbsp;&nbsp;     </div>
            </div>
            <div class="form-actions">
              <button type="submit" class="btn btn-success">修改新闻</button>
            </div>
          </form>
        </div>
      </div>


    </div>

  </div>
    
  </div>
</div>

<!--end-main-container-part-->

<!-- 加载编辑器开始 -->

    <!-- 配置文件 -->
    <script type="text/javascript" src="__PUBLIC__/ueditor/ueditor.config.js"></script>
    <!-- 编辑器源码文件 -->
    <script type="text/javascript" src="__PUBLIC__/ueditor/ueditor.all.js"></script>
    <!-- 实例化编辑器 -->
    <script type="text/javascript">
        var ue = UE.getEditor('container');
    </script>
<!-- 加载编辑器结束 -->